// @Author zhangjiaozhu 2024/1/9 20:42:00
package dto

import (
	"gorm.io/gorm"
	"time"
)

type NewBuildingInfDto struct {
	gorm.Model
	//教学楼名称(1号楼/弘德楼)
	Name string `json:"name" gorm:"name"`
	//所属校区id
	CampusId uint `json:"campus_id" gorm:"campus_id"`
	//状态(0-关闭，1-正常)
	BuildingStatus int `json:"building_status" gorm:"building_status"`
	//楼栋图片
	HeadImg string `json:"head_img"`
	//楼栋锁定开始时间
	LockStartTime *time.Time `json:"lock_start_time"`
	//楼栋锁定结束时间
	LockEndTime *time.Time `json:"lock_end_time"`
	// 经度
	Longitude float64 `json:"longitude"`
	// 纬度
	Latitude             float64 `json:"latitude"`
	TotalClassroomsCount int     `json:"total_classrooms_count" gorm:"column:classroom_count"`
	TotalSeatsCount      int     `json:"total_seats_count" gorm:"column:total_seats"`
}
